package reduce.fz.com.reduce.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import reduce.fz.com.reduce.R;

public class FirstActivity extends BaseActivity {
    //注册
    private TextView mTvRegister;
    //登录
    private TextView mTvLogin;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initWidget();
        initListener();
    }

    @Override
    public int getContentRid() {
        return R.layout.activity_first;
    }


    public void initWidget() {
        mTvRegister = (TextView) this.findViewById(R.id.tv_register);
        mTvLogin = (TextView) this.findViewById(R.id.tv_login);
    }

    public void initListener() {
        /*登录监听登录*/
        mTvLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(FirstActivity.this, LoginActivity.class);
                startActivity(intent);
            }
        });
        /*注册监听注册*/
        mTvRegister.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(FirstActivity.this, RegisterActivity.class);
                startActivity(intent);
            }
        });

    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


}
